<!DOCTYPE html>
<html>
<? $this->headMeta()->appendName('keywords', $this->keywords()); ?>
<? $this->headMeta()->appendName('description', $this->description()); ?>
<head>
    <?= $this->headTitle() ?>
    <?= $this->headLink() ?>
    <?= $this->headScript() ?>
    <?= $this->headMeta() ?>
    <link rel="shortcut icon" href="<?= $this->baseUrl()?>/favicon.ico" type="image/x-icon">
    <link href='http://fonts.googleapis.com/css?family=Didact+Gothic&subset=latin,cyrillic-ext' rel='stylesheet' type='text/css'>
    <script type="text/javascript" src="//vk.com/js/api/openapi.js?109"></script>
    <script type="text/javascript">
        VK.init({apiId: 4259410, onlyWidgets: true});
    </script>
</head>
<body>
    <div id="container-wrap">
        <div id="container">
            <div id="header">
                <div id="header-company-info">
                    <? if ($this->catalog()->isServiceAndRent()):?>
                        <a href="/" id="logo" title="Строительный магазин Труд"><img  src="<?=$this->baseUrl() ?>/i/logo-service.png"></a>
                    <? else:?>
                        <a href="/" id="logo" title="Строительный магазин Труд"><img  src="<?=$this->baseUrl() ?>/i/logo.png"></a>
                    <? endif;?>

                    <div id="slider-wrap">
                        <?if ($this->admin()->stocks()):?>
                            <ul class="bxslider">
                                <? foreach ($this->admin()->stocks() as $stock):?>
                                    <?/** @var $stock Application_Model_Stock */?>
                                    <li><a href="/stock/<?= $stock->getId() ?>"><img width="420" height="170" src="<?=$this->baseUrl()?>/i/stock/<?=$stock->getPhoto()?>" /></a></li>
                                <? endforeach;?>
                            </ul>
                        <?endif;?>
                    </div>

                    <div id="schedule">
                        <span>9.00 - 20.00</span><br>
                        <span>без выходных</span><br>
                        <span><b>+7 (81362) 20-357</b></span><br>
                        <span><b>+7 (81362) 23-373</b></span><br>
                    </div>
                </div>
                <div class="clear">
                    <div id="main-menu" class="clear">
                        <?= $this->navigation()->menu(); ?>
                    </div>
                </div>
            </div>

            <div id="content-wrap">
                <div id="left-sidebar">
                    <?= $this->leftSidebar(); ?>
                </div>
                <div id="content">
                    <?= $this->layout()->content ?>
                </div>
                <div id="right-sidebar">
                    <?= $this->rightSidebar();?>
                </div>
            </div>
            <div id="footer" class="clear">
                <!-- Yandex.Metrika informer -->
                <a href="http://metrika.yandex.ru/stat/?id=22253020&amp;from=informer" target="_blank" rel="nofollow" style="float:right; margin-top: 20px;">
                    <img src="//bs.yandex.ru/informer/22253020/3_1_FFFFFFFF_EFEFEFFF_0_pageviews" style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" onclick="try{Ya.Metrika.informer({i:this,id:22253020,lang:'ru'});return false}catch(e){}"/>
                </a>
                <!-- /Yandex.Metrika informer -->
                <? if (Zend_Auth::getInstance()->getIdentity()) :?>
                    <a href="/logout/">Выйти</a> |
                    <a href="/admin/">Админка</a>
                <? endif;?>
            </div>
        </div>
    </div>
</body>
</html>

<!-- Yandex.Metrika counter -->
<script type="text/javascript">
    (function (d, w, c) {
        (w[c] = w[c] || []).push(function() {
            try {
                w.yaCounter22253020 = new Ya.Metrika({id:22253020,
                    webvisor:true,
                    clickmap:true,
                    trackLinks:true,
                    accurateTrackBounce:true});
            } catch(e) { }
        });

        var n = d.getElementsByTagName("script")[0],
            s = d.createElement("script"),
            f = function () { n.parentNode.insertBefore(s, n); };
        s.type = "text/javascript";
        s.async = true;
        s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";

        if (w.opera == "[object Opera]") {
            d.addEventListener("DOMContentLoaded", f, false);
        } else { f(); }
    })(document, window, "yandex_metrika_callbacks");
    VK.Widgets.Group("vk_groups", {mode: 0, width: "250", height: "400", color1: 'FFFFFF', color2: '2B587A', color3: '5B7FA6'}, 56814181);
</script>
<noscript><div><img src="//mc.yandex.ru/watch/22253020" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->